﻿<Window x:Class="ProjectBilling.UI.MVC.ProjectsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Projects" MinHeight="180" Height="180"
        MinWidth="250" Width="250" Padding="5"
        FocusManager.FocusedElement
            ="{Binding ElementName=ProjectsComboBox}">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Label Content="Project:" />
        <ComboBox Name="ProjectsComboBox" Margin="5"
                Grid.Column="1"
                SelectionChanged
                    ="ProjectsComboBox_SelectionChanged" />
        <Label Content="Estimated Cost:"
                Grid.Row="1" />
        <TextBox Name="EstimatedTextBox" Grid.Column="1"
                Grid.Row="1" Margin="5" IsEnabled="False" />
        <Label Content="Actual Cost:" Grid.Row="2" />
        <TextBox Name="ActualTextBox" Grid.Row="2"
                Grid.Column="1" Margin="5" IsEnabled="False" />
        <Button Name="updateButton" Content="Update"
                Grid.Row="3" Grid.ColumnSpan="2" Margin="5"
                IsEnabled="False" Click="UpdateButton_Click" />
    </Grid>
</Window>